import axios from '@/libs/api.request'

export const newGetCompanyInfo = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/getCompantInfo',
    method: 'post',
    data: data
  })
}
export const newfindAreaList = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/findAreaList',
    method: 'post',
    data: data
  })
}
export const newFindGridLevelList = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/findGridLevelList',
    method: 'post',
    data: data
  })
}
export const newFindResidentialByMapList = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/findResidentialByMapList',
    method: 'post',
    data: data
  })
}
export const newFindGardenByMapList = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/findGardenByMapList',
    method: 'post',
    data: data
  })
}
export const newFindBuildingByMapList = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/findBuildingByMapList',
    method: 'post',
    data: data
  })
}
export const newGetGridInfoByID = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/getGridInfoByID',
    method: 'post',
    data: data
  })
}
export const newGetGridInfoByPolygon = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/getGridInfoByPolygon',
    method: 'post',
    data: data
  })
}

export const getResidentialNum = (data) => {
  return axios.request({
    url: '/api/ac/grid/gridCardInfoForGridService/getResidentialNum',
    method: 'post',
    data: data
  })
}
export const newFindGridChildrenList = (data) => {
  return axios.request({
    url: '/api/ac/grid/newGridLevelService/findGridChildrenList',
    method: 'post',
    data: data
  })
}
export const createGridLevel = (data) => {
  return axios.request({
    url: '/api/ac/grid/createGridService/createGridLevel',
    method: 'post',
    data: data
  })
}
export const findResidentialForCommunityList = (data) => {
  return axios.request({
    url: '/api/as/grid/newgridlevel/findResidentialForCommunityList',
    method: 'post',
    data: data
  })
}
// 社区画像
export const getGridStatiStics = (data) => {
  return axios.request({
    url: '/api/ac/grid/v2GridStatiStics/getGridStatiStics',
    method: 'post',
    data: data
  })
}
// 社区生活指数
export const getSHNumList = (data) => {
  return axios.request({
    url: '/api/ac/grid/v2GridStatiStics/getSHNumList',
    method: 'post',
    data: data
  })
}
// 社区满意度指数
export const getMydNumList = (data) => {
  return axios.request({
    url: '/api/ac/grid/v2GridStatiStics/getMydNumList',
    method: 'post',
    data: data
  })
}
